NAVIÉ

FXNodeData

FXNodeData

This node data is private! Don't ever derive from this nodedata! Really...don't.
Use the derived classes FXConstraintData, FXForceData and FXOperatorData.

virtual void GetSubType (int& subtype)


Overloaded to define on what kind of data this plugin is operating on.
Most of the time this will either be operating on grids, particles or both (dual)

Parameters
int& subtype:
Depending on type of plugin set a an according NodeSubType bit in the passed subtype reference integer.

Example (for grids):
subtype |= (1 << nst_grid);

virtual bool PortsDirty (FXServer* server)


Overloaded to check if any of the linked nodes in your ports are dirty.
Called once at the beginning of the pipeline and before substepping.

Returns
true if there are dirty nodes..

Parameters
FXServer* server:
The server this node is called from. Use it to retrieve any information you may need..

virtual bool FillData (BaseObject* node)


Overloaded to get the node interface settings.
Called at the beginning of the pipeline and before substepping.

Returns
false if there was an error. If so, the node is set as not-operational (for example if a port is not filled although it is necessary for your plugin to correctly operate).

Parameters
BaseObject* node:
The node interface for convenience and to retrieve the settings from.

virtual bool FillPorts (BaseObject* node , FXServer* server)


Overloaded to get the node interface ports.
Called at the beginning of the pipeline and before substepping..

Returns
false if there was an error. If so, the node is set as not-operational (for example if a port is not filled although it is necessary for your plugin to correctly operate).

Parameters
BaseObject* node:
The node interface for convenience and to retrieve the ports from.

FXServer* server:
The server this node is called from. Use it to find the nodes from any node interfaces linked in your ports.

virtual void ClearPorts (void)


Overloaded to clear any nodes and node interfaces data you have stored as class members.
Is called after the pipeline is finished and all substeps have been processed.